/**
 * 开店星新零售管理系统
 * @description 基于Yii2+Vue2.0+uniapp研发，H5+小程序+公众号全渠道覆盖，功能完善开箱即用，框架成熟易扩展二开
 * @author 青岛开店星信息技术有限公司
 * @link https://www.kaidianxing.com
 * @copyright Copyright (c) 2020-2022 Qingdao ShopStar Information Technology Co., Ltd.
 * @copyright 版权归青岛开店星信息技术有限公司所有
 * @warning Unauthorized deletion of copyright information is prohibited.
 * @warning 未经许可禁止私自删除版权信息
 */
<template>
    <!--自定义首页与会员中心页面版权设置-->
    <div class="diyCopyright" >
        <div >
            <span></span>
            <p>开店星提供技术支持</p>
        </div>
    </div>
</template>

<script>

    import MyRichText from "../templates-shim/RichText";
    import {mapState} from "vuex";

    export default {
        name: "CopyRight",
        components: {
            MyRichText
        },
        computed: {
            ...mapState('setting',{
                logo: state => state.systemSetting?.basic?.logo
            }),
        },
        created() {
        },
        mounted() {
        },
        methods: {
            toCopyRightUrl() {
                let plat;
                // #ifdef H5
                plat = this.copyright.h5
                // #endif
                // #ifdef MP-WEIXIN
                plat = this.copyright.wxapp
                // #endif

                if(plat.url_type == '1'){
                    let src = plat.url
                    // #ifdef H5
                    if (src.indexOf('http://') == -1 && src.indexOf('https://') == -1 && src.indexOf('wxfile://') == -1) {
                        src = 'http://' + src
                    }
                    window.location.href = src;
                    // #endif
                    // #ifdef MP-WEIXIN
                    uni.navigateTo({
                        url: '/kdxOthers/webview?link=' + src
                    })
                    // #endif
                }
            },
        },
    }
</script>

<style lang="scss" scoped>
    .diyCopyright {
        font-size: px2rpx(12);
        padding: 30rpx 0 0;
        span{
            display: block;
            margin: 0 auto;
            width: 116rpx;

            height: 40rpx;
            margin-bottom: 4rpx;
            background-image: url("");
            background-size: 116rpx 40rpx;
            background-repeat: no-repeat;

        }
        image{
            margin: 0 auto;
            width: 116rpx;
            height: 40rpx;
            display: block;
            margin-bottom: 4rpx;

        }
       p{
           color: #cccccc;
           font-size: px2rpx(12);
       }
    }
</style>
